<template>
	<view class="page">
		<view>
			<shopList  :list="list" @go="go" v-if="list.length" :row="true">
				<template v-slot:tag="{item}">
					<view class="tag" >				
                          {{item.groupNum}}人团
					</view>
				</template>
			</shopList>
		</view>
		<backTop></backTop>
		
		
		<u-loadmore :status="initial.status" />
	</view>
</template>

<script>
	import loader from '@/common/loadPage.js';
	import shopList from "@/components/shopList.vue";
	import backTop from '../../components/backTop';
	export default {
		mixins: [loader],
		components: {
			shopList,
			backTop,
		},
		data() {
			return {
				
				initial: {
					geturl: "/index/goods",
					parm: {
						goods_type: 2
					},
					isPage: true
				},
				list: [],
			}
		},
	
		onLoad() {

			this.getGoods()
			
		},
		onShow() {
			
		},
		methods: {
				go(item){
					uni.navigateTo({
						url:"./detail?id="+item.id
				})
     	}

		}
	}
</script>


<style>
	

	.list {
		background: #fff;
		width: 700rpx;
		margin: 20rpx auto;
		padding: 20rpx;
	}
	.tag{
		position: absolute;
		top: -10rpx;
		left: -10rpx;
		padding: 7rpx 15rpx;
		border-radius: 20rpx 20rpx  20rpx 0;
		background: #FF5D39;
		color: #fff;
		font-size: 24rpx;
	}
</style>
